var searchForm= new Vue({
	el:"#searchForm",
	data:{
		plist:getIssueByCompanyid()
	}
})

function getIssueByCompanyid(){
	var list
	$.ajax({ 
		xhrFields: {
			withCredentials: true
		},
		url:"http://101.37.77.75:8080/lagouwang/lssueServlet?type=getIssueByCompanyid",
		dataType:"json",
		async:false,
		success:function(data){
			list=data.data
		}
	})
	return list
}

function updatedel(id){
	$.ajax({
		xhrFields: {
			withCredentials: true
		},
		data:{
			"id":id
		},
		url:"http://101.37.77.75:8080/lagouwang/lssueServlet?type=updatedel",
		async:false,
		success:function(data){
			searchForm.$data.plist=getIssueByCompanyid()
		},
		dataType:"json"
	})
	
}
function deleteInfo(id){
	$.ajax({
		xhrFields: {
			withCredentials: true
		},
		data:{
			"id":id
		},
		async: false,
		url:"http://101.37.77.75:8080/lagouwang/lssueServlet?type=deleteIssueById",
		success:function(data){
			getIssueByCompanyid()
		},
		dataType:"JSON"
	})
	
}
